<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="../common/taglibs.jsp"%>
<%
    String path = request.getContextPath();
			String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
					+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>商户信息申请变更</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="icon" href="favicon.ico" type="image/x-icon"/>
<!-- 当前页面样式 -->
<link rel="stylesheet" href=<s:url value="/css/common.css"/>>
<script type="text/javascript" src="<s:url value="/js/My97DatePicker/WdatePicker.js"/>"></script>
<script type="text/javascript" src="<s:url value="/js/jquery-1.9.1.js" />"></script>
<script type="text/javascript" src="<s:url value="/js/jquery.blockUI.js" />"></script>
<script type="text/javascript" src="<s:url value="/js/jquery.validate.min2.js" />"></script>
<script type="text/javascript" src="<s:url value="/js/pwms.validate.js?v13" />"></script>
<script type="text/javascript" src="<s:url value="/js/divTuo.js" />"></script>
<script type='text/javascript' src='<s:url value="/dwr/engine.js"/>'></script>
<script type='text/javascript' src='<s:url value="/dwr/interface/MccQuery.js"/>'></script>
<script type='text/javascript' src='<s:url value="/dwr/interface/AddressQuery.js"/>'></script>
<script type='text/javascript' src='<s:url value="/js/YLlightbox.js"/>'></script>
<script type="text/javascript" src="<s:url value="/js/ajaxfileupload.js" />"></script>
<script type="text/javascript" language="javaScript">
	var num = 1;
	var mgroupCd = $("#groupCd").val();

	//校验间联直营商户D0借记卡封顶值及代付服务费
	function checkD0JFeePctMax1(){
			var d0feePctMax = $("#feePctMax11").val();
				if(d0feePctMax > 0){
					
					if((d0feePctMax < 20) || (d0feePctMax > 999)){
						alert("D0借记卡手续费封顶值不正确！请设置为0(无封顶)或者设置在20~999范围内！");
						return false;
					}else{
						$("#serviceFee").show();
						if(!checkD0JServiceFee()){
							return false;
						}
					}
				}else if(d0feePctMax == 0){
					$("#feeAPerchent1").val("");
					$("#serviceFee").hide();
				}else{
					alert("D0借记卡手续费封顶值不能小于0！");
					return false;
				}
			return true;
	}
	
	function checkD0JServiceFee(){
		var feeAPerchent1 = $.trim($("#feeAPerchent1").val());
		if(feeAPerchent1.length == 0){
			$("#feeAPerchent1").val("0.03");
		}else{
			if((feeAPerchent1 < 0.03) || (feeAPerchent1 > 0.99)){
			alert("代付服务费费率不正确！正确范围0.03~0.99");
			return false;
		}
		}
		return true;
	}
	
	$(document).ready(function() {
		var mgroupCd = $("#groupCd").val();
          if(mgroupCd == 2){
			$("#feePctMax11").bind("blur",checkD0JFeePctMax1);
			$("#feeAPerchent1").bind("blur",checkD0JServiceFee);
		}
		
		
	    $("#terminalDiv").click(function(){ 
	    	var merNo = $("#isMid").val();
	    	var srccount = Number(termCount(merNo));
	    	var count = srccount+num;
	    	
	    	var isGroupCd = $("#groupCd").val();
	    	
	    	if(isGroupCd!=2){
	    		if(count<15){
	        		var table=$("#posTable").get(0);
	            	var count=15;
	            	var lengths=table.rows.length;  
	            	if(lengths >= count*2+1){
	            		alert("提示：赠机最多添加15台终端信息！");
	    				return false;
	    			} 
	             	var htmls=jsp_code(lengths);
	    		    $("#posTable").append(htmls);
	    		    ++num;
	        	}else{
	        		alert("提示：一个商户最多只能添加15台终端");
	        	}
	    	}else{
	    		if(count<150){
	        		var table=$("#posTable").get(0);
	            	var count=150;
	            	var lengths=table.rows.length;  
	            	if(lengths >= count*2+1){
	            		alert("提示：赠机最多添加150台终端信息！");
	    				return false;
	    			} 
	             	var htmls=jsp_code(lengths);
	    		    $("#posTable").append(htmls);
	    		    ++num;
	        	}else{
	        		alert("提示：一个商户最多只能添加150台终端");
	        	}
	    	}
	    }); 
		typeChange();

		$('.delete-pic').on('click',deleteImage);

        function removeAllSpace(str) {
        	return str.replace(/\s+/g, "");
        	}
	       
        $("#merinfoFormID").validate({
			//debug : true,
			submitHandler : function(form) {
				 if($("#isMid").val()==null || $("#isMid").val()=="" || $("#clickInp").val()=="1"){
					 alert("加载信息异常");
					 return;
				 } 
				if($("#pubPriChangeID").val()=="0" && $("input[name='merinfoChange.dvpBy']:checked").val()=="0"){
				
					if(removeAllSpace($("#certifID").val())!=removeAllSpace($("#bankAccountNameID").val())){
						
						alert("当为对私（非法人）是法人结算的时候：新账户账户名称等于法人代表名称");
						return;
					}
				} 
				
				 if($("#merinfoChangeTyep").val()=="C1"){
					 $("#s_imgOne").trigger("click");
					 $("#s_imgTwoId").trigger("click");
					 $("#s_imgThreeId").trigger("click");
					 if($("#i_imgOne").val() == "" || $("#i_imgTwoId").val() == "" || $("#i_imgThreeId").val() == ""){ 
						 return;
					 }
				 }
				 if($("#merinfoChangeTyep").val()=="C2"){
					 var c=checkNewBankAccount();
					 if(c>9){
						 alert("同一结算卡使用次数不能超过10次，请核对后提交！")
						 return;
					 } 
					 $("#s_imgOne").trigger("click");
					 $("#s_imgTwoId").trigger("click");
					 $("#s_imgThreeId").trigger("click");
					 $("#s_imgFourId").trigger("click");
					 $("#s_imgFiveId").trigger("click");
						var type= $("#pubPriChangeID").val();
				    	if(type=="0"){
				    		 $("#s_imgSixId").trigger("click");
							 $("#s_imgSevenId").trigger("click");
				    	}else if(type=="1"){
							 $("#s_imgEightId").trigger("click");
				    	}
				    	//alert(type);
				    	if(type=="0"){
				    		if($("#i_imgOne").val() == "" || $("#i_imgTwoId").val() == "" || $("#i_imgThreeId").val() == "" || $("#i_imgFourId").val() == "" || $("#i_imgFiveId").val() == "" || $("#i_imgSixId").val() == ""|| $("#i_imgSevenId").val() == ""){
				    			return;
				    		 }
				    	}
				    	if(type=="1"){
 							if($("#i_imgOne").val() == "" || $("#i_imgTwoId").val() == "" || $("#i_imgThreeId").val() == "" || $("#i_imgFourId").val() == "" || $("#i_imgFiveId").val() == "" || $("#i_imgEightId").val() == ""){
				    			return;
				    		 }
				    	}
				 }
				 if($("#merinfoChangeTyep").val()=="C3"){
					 $("#s_imgOne").trigger("click");
					 $("#s_imgTwoId").trigger("click");
					 $("#s_imgThreeId").trigger("click");
					 $("#s_imgFourId").trigger("click");
					 $("#s_imgFiveId").trigger("click");
					 if($("#i_imgOne").val() == "" || $("#i_imgTwoId").val() == "" || $("#i_imgThreeId").val() == "" || $("#i_imgFourId").val() == "" || $("#i_imgFiveId").val() == ""){ 
						 return;
					 }
				 }
				 if($("#merinfoChangeTyep").val()=="C4"){
					 $("#s_imgOne").trigger("click");
					 $("#s_imgTwoId").trigger("click");
					 $("#s_imgThreeId").trigger("click");
					 $("#s_imgFourId").trigger("click");
					 if($("#i_imgOne").val() == "" || $("#i_imgTwoId").val() == "" || $("#i_imgThreeId").val() == "" || $("#i_imgFourId").val() == ""){ 
						 return;
					 }
				 }
				 if($("#merinfoChangeTyep").val()=="C5"){
					 $("#s_imgOne").trigger("click");
					 $("#s_imgTwoId").trigger("click");
					 $("#s_imgThreeId").trigger("click");
					 $("#s_imgFourId").trigger("click");
					 if($("#i_imgOne").val() == "" || $("#i_imgTwoId").val() == "" || $("#i_imgThreeId").val() == "" || $("#i_imgFourId").val() == ""){ 
						 return;
					 }
					 
						var isGroupCd = $("#groupCd").val();
						if(isGroupCd==2){
							if(!checkD0JFeePctMax1()){
		        				return false;
		        			}
						}
					 
				 }
				 if($("#merinfoChangeTyep").val()=="C6"){
					 $("#s_imgOne").trigger("click");
					 $("#s_imgTwoId").trigger("click");
					 $("#s_imgThreeId").trigger("click");
					 $("#s_imgFourId").trigger("click");
					 if($("#i_imgOne").val() == "" || $("#i_imgTwoId").val() == "" || $("#i_imgThreeId").val() == "" || $("#i_imgFourId").val() == ""){ 
						 return;
					 }
				 }
				 if($("#merinfoChangeTyep").val()=="C7"){
					 $("#s_imgOne").trigger("click");
					 $("#s_imgTwoId").trigger("click");
					 $("#s_imgThreeId").trigger("click");
					 $("#s_imgFourId").trigger("click");
					 if($("#i_imgOne").val() == "" || $("#i_imgTwoId").val() == "" || $("#i_imgThreeId").val() == "" || $("#i_imgFourId").val() == ""){ 
						 return;
					 }
				 }
				 if($("#merinfoChangeTyep").val()=="C8"){
					 $("#s_imgOne").trigger("click");
					 $("#s_imgTwoId").trigger("click");
					 $("#s_imgThreeId").trigger("click");
					 $("#s_imgFourId").trigger("click");
					 if($("#i_imgOne").val() == "" || $("#i_imgTwoId").val() == "" || $("#i_imgThreeId").val() == "" || $("#i_imgFourId").val() == ""){ 
						 return;
					 }
				 }
				 
				 if($("#merinfoChangeTyep").val()=="10"){
					 $("#s_imgOne").trigger("click");
					 $("#s_imgTwoId").trigger("click");
					 $("#s_imgThreeId").trigger("click");
					 $("#s_imgFourId").trigger("click");
					 if($("#i_imgOne").val() == "" || $("#i_imgTwoId").val() == "" || $("#i_imgThreeId").val() == "" || $("#i_imgFourId").val() == ""){ 
						 return;
					 }
				 } 
				 if($("#merinfoChangeTyep").val()=="11"){
					 $("#s_imgOne").trigger("click");
					 $("#s_imgTwoId").trigger("click");
					 $("#s_imgThreeId").trigger("click");
					 $("#s_imgFourId").trigger("click");
					 if($("#i_imgOne").val() == "" || $("#i_imgTwoId").val() == "" || $("#i_imgThreeId").val() == "" || $("#i_imgFourId").val() == ""){ 
						 return;
					 }
					 
				 }
				 if($("#merinfoChangeTyep").val()=="12"){
					 $("#s_imgOne").trigger("click");
					 $("#s_imgTwoId").trigger("click");
					 $("#s_imgThreeId").trigger("click");
					 $("#s_imgFourId").trigger("click");
					 if($("#i_imgOne").val() == "" || $("#i_imgTwoId").val() == "" || $("#i_imgThreeId").val() == "" || $("#i_imgFourId").val() == ""){ 
						 return;
					 }
					 
				 }
	
				 
				 var tests=validateHidden();
				 if(!tests){
					 $("#submitBtnID").attr("disabled",true);
					 return;
				 }else{
					 $("#submitBtnID").removeAttr("disabled");
				 }
				 
				 form.submit();
			},
			rules : {
				"merinfoChange.nameBusi" : {required : true},   
				"merinfoChange.contactName" : {required : true},
				"merinfoChange.certif" : {required : true},
				"merinfoChange.contactPhoneNo" : {required : true,isMobile :true},
				"merinfo.k2WorkFlowId" : {required : true,isMobile :true},
				"merinfoChange.pubOrPri":{selectcheck : true},
				"merinfo.certifNo" : {required : true,isIdCardNo:true},
				"merinfo.stlmWayDesc" : {required : true,isIdCardNo:true},
				"merinfoChange.stlmWayDesc" : {required : true,isIdCardNo:true},
				"merinfoChange.bankAccountName":{required: true},
				"merinfoChange.bankAccount":{required: true,isNumber:true},
				"merinfoChange.creditAccount":{required: true,isNumber:true},
				"merinfoChange.openBank":{required:true},
				"merinfoChange.bankCode":{required: true},
				"merinfoEdit.terminfoList[0].TmnlMoney":{required:true,isNumber:true},
				"merinfoEdit.terminfoList[1].TmnlMoney":{required:true,isNumber:true},
				"merinfoEdit.terminfoList[2].TmnlMoney":{required:true,isNumber:true},
				"merinfoEdit.terminfoList[3].TmnlMoney":{required:true,isNumber:true},
				"merinfoEdit.terminfoList[4].TmnlMoney":{required:true,isNumber:true},
				"merinfoEdit.terminfoList[0].Installlocation":{required:true},
				"merinfoEdit.terminfoList[1].Installlocation":{required:true},
				"merinfoEdit.terminfoList[2].Installlocation":{required:true},
				"merinfoEdit.terminfoList[3].Installlocation":{required:true},
				"merinfoEdit.terminfoList[4].Installlocation":{required:true},
				"merinfoEdit.productCode":{required:true},
				"merinfoEdit.fee[0].mchtFeePercent":{required:true,isDecimal: function(){//T+1借记卡费率
					var min= 0.450;    var max = 0.999;     var accuracy = 3;
					return [min, max, accuracy];}},
				"merinfoEdit.fee[0].mchtFeePctMax":{required:true,maxNumber:true,min:18},//T+1借记卡封顶
				 
				"merinfoEdit.fee[1].mchtFeePercent":{required:true,isDecimal: function(){//T+1贷记卡费率
					var min = 0.550;   var max = 0.999;     var accuracy = 3;
					return [min, max, accuracy];}},
				"merinfoEdit.fee[2].mchtFeePercent":{required:true,isDecimal: function(){//T+0借记卡费率
						var min=0.550; var max = 0.999;     var accuracy = 3;
						return [min, max, accuracy];}},
				"merinfoEdit.fee[3].mchtFeePercent":{required:true,isDecimal: function(){//T+0贷记卡手续费
					var min=0.550;  var max = 0.999;     var accuracy = 3;
					return [min, max, accuracy];}},
				"merinfoEdit.fee[4].mchtFeePercent":{required:true,isDecimal: function(){//T+1借记卡费率
					var min= 0.500;    var max = 0.999;     var accuracy = 3;
					return [min, max, accuracy];}},
				"merinfoEdit.fee[4].mchtFeePctMax":{required:true,maxNumber:true,min:20},//T+1借记卡封顶
				 
				"merinfoEdit.fee[5].mchtFeePercent":{required:true,isDecimal: function(){//T+1贷记卡费率
					var min = 0.550;   var max = 0.999;     var accuracy = 3;
					return [min, max, accuracy];}},
				"merinfoEdit.fee[6].mchtFeePercent":{required:true,isDecimal: function(){//T+0借记卡费率
						var min=0.550; var max = 0.999;     var accuracy = 3;
						return [min, max, accuracy];}},
				"merinfoEdit.fee[7].mchtFeePercent":{required:true,isDecimal: function(){//T+0贷记卡手续费
					var checkBoxLen=$("input[name='merinfoEdit.productCode']:checked").length;
					var min=0.550; var max = 0.999;     var accuracy = 3;
					return [min, max, accuracy];}},
				"merinfoEdit.fee[8].mchtFeePercent":{required:true,isDecimal: function(){//银联扫码手续费
					var checkBoxLen=$("input[name='merinfoEdit.productCode']:checked").length;
					var min=0.350; var max = 0.999;     var accuracy = 3;
					return [min, max, accuracy];}},
				"merinfoEdit.fee[9].mchtFeePercent":{required:true,isDecimal: function(){//支付宝/微信扫码手续费
					var checkBoxLen=$("input[name='merinfoEdit.productCode']:checked").length;
					var min=0.350; var max = 0.999;     var accuracy = 3;
					return [min, max, accuracy];}},
				"merinfoChange.url1":"isURLnull",
				"merinfoChange.url2":{required: true},
				"merinfoChange.url3":{required: true},
				"merinfoChange.url4":{required: true}
			},
			messages : {
				"merinfoChange.nameBusi" : {required : "必填"},  
				"merinfoChange.contactName" : {required : "必填"},
				"merinfoChange.certif" : {required : "必填"},
				"merinfoChange.contactPhoneNo" : {required : "必填"},
				"merinfo.k2WorkFlowId" : {required : "必填"},
				"merinfo.certifNo" : {required : "必填",isIdCardNo: "证件格式不正确",},
				"merinfo.stlmWayDesc" : {required : "必填",isIdCardNo: "证件格式不正确",},
				"merinfoChange.stlmWayDesc" : {required : "必填",isIdCardNo: "证件格式不正确",},
				"merinfoChange.bankAccountName":{required: "必填"},
				"merinfoChange.bankAccount":{required: "必填"},
				"merinfoChange.creditAccount":{required: "必填"},
				"merinfoChange.openBank":{required: "必选"},
				"merinfoChange.bankCode":{required: "必选"},
				"merinfoEdit.terminfoList[0].TmnlMoney":{required: "必填"},
				"merinfoEdit.terminfoList[1].TmnlMoney":{required: "必填"},
				"merinfoEdit.terminfoList[2].TmnlMoney":{required: "必填"},
				"merinfoEdit.terminfoList[3].TmnlMoney":{required: "必填"},
				"merinfoEdit.terminfoList[4].TmnlMoney":{required: "必填"},
				"merinfoEdit.terminfoList[0].Installlocation":{required: "必填"},
				"merinfoEdit.terminfoList[1].Installlocation":{required: "必填"},
				"merinfoEdit.terminfoList[2].Installlocation":{required: "必填"},
				"merinfoEdit.terminfoList[3].Installlocation":{required: "必填"},
				"merinfoEdit.terminfoList[4].Installlocation":{required: "必填"},
				"merinfoEdit.productCode":{required:"T+1必选"},
			 	"merinfoEdit.fee[0].mchtFeePercent":{required:"必填"},
				"merinfoEdit.fee[0].mchtFeePctMax":{required:"必填",min:"最低18"},
				"merinfoEdit.fee[1].mchtFeePercent":{required:"必填"},
				"merinfoEdit.fee[2].mchtFeePercent":{required:"必填"},
				"merinfoEdit.fee[3].mchtFeePercent":{required:"必填"},
				"merinfoEdit.fee[4].mchtFeePercent":{required:"必填"},
				"merinfoEdit.fee[4].mchtFeePctMax":{required:"必填",min:"最低20"},
				"merinfoEdit.fee[5].mchtFeePercent":{required:"必填"},
				"merinfoEdit.fee[6].mchtFeePercent":{required:"必填"},
				"merinfoEdit.fee[7].mchtFeePercent":{required:"必填"},
				//"merinfoChange.url1":{required:"未上传"},
				"merinfoChange.url2":{required:"未上传"},
				"merinfoChange.url3":{required:"未上传"},
				"merinfoChange.url4":{required:"未上传"}
			},
			errorPlacement: function(error, element) {
			    if ( element.is(":radio") ) error.appendTo ( element.parent() ); 
			    else if ( element.is(":checkbox") ) error.appendTo ( element.parent()); 
			    else if ( element.is("input") ) error.appendTo ( element.parent().next() ); 
			    else if ( element.is("select") ) error.appendTo ( element ); 
			    else error.insertAfter(element); 
			} 
		});
	}); 
	jQuery.validator.addMethod('selectcheck', function (value) {
        return (value != '-1');
    }, "必选");
	function chooseImgJs(obj){
		var inputId=obj.id.split("_")[1];
		//alert("inputId----"+inputId);
    	
    	if($("#i_"+inputId).val()==""){
    		$("#e_"+inputId).html("未上传");
    		return false;
    	}else{
    		$("#e_"+inputId).html("*");
    		return true;
    	}
	}
	
    function chooseType(prodValue){
    	$("input[name='merinfoEdit.productBean.transCd']").each(function(){
			this.readonly=true;
			if(prodValue=="1"){
				if(this.value=="1171"){
					this.checked=true;
				}else{
					this.checked=false;
				}
			}else{ 
				if(this.value=="1171"){
					this.checked=false;
				}else{
					this.checked=true;
				}
			}
		});
    }
    function deleteRows(input){
		var a=input.parentNode.parentNode.rowIndex; 
		var table=$("#posTable").get(0);
		table.deleteRow(a);
		table.deleteRow(a-1);
		--num;
	}
    function jsp_code(lengths){
   	 
    	var select="<select name='merinfoEdit.terminfoList["+parseInt(lengths/2)+"].TermTp'>";
    	 
    	 <s:iterator value="#request.posType" var="pos">
    	 	var key="<s:property value="#pos.key"/>";
    	 	var value="<s:property value="#pos.value"/>";
    	 	select=select+"<option value='"+key+"'>"+value+"</option>";
    	 </s:iterator> 
     	 select=select+"</select>";
    	  
    	  var htmls= "<tr class='tb-line'>"
		+"<td style='width: 110px' align='right' class='tb-td'><div class='tb-h4'>终端类型：</div></td>"
		+"<td class='tb-td'><label class='tb-input-lengthen'>"+select
		+"</label><code class='asterisk'>*</code></td>"
		+"<td  style='width: 110px'align='right' class='tb-td'><div class='tb-h4'>终端接入方式：</div></td>"
		+"<td class='tb-td'  align='left'> "
		+"<input name='merinfoEdit.terminfoList["+parseInt(lengths/2)+"].TmnlIntype' type='radio' checked='checked' value='0' />无线(GPRS)<input name='merinfoEdit.terminfoList["+parseInt(lengths/2)+"].TmnlIntype' type='radio' value='1' />有线(拨号)"
		+"<code class='asterisk'>*</code></td></tr>"
		+"<tr class='tb-line'>"
		+"<td style='width: 110px' align='right' class='tb-td' ><div class='tb-h4'>押金金额：</div></td>"
		+"<td class='tb-td'><label class='tb-input-normal'><input name='merinfoEdit.terminfoList["+parseInt(lengths/2)+"].TmnlMoney' value='0' maxLength='10'/></label><code class='asterisk'>*</code></td>"
		+"<td style='width: 110px'align='right' class='tb-td'><div class='tb-h4'>装机地址：</div></td>"
		+"<td class='tb-td' ><label class='tb-input-lengthen'><input  name='merinfoEdit.terminfoList["+parseInt(lengths/2)+"].Installlocation' type='text' maxLength='30'/></label>"
		+"<code class='asterisk'>*</code> "
        +"<input id='' type='button' onclick='deleteRows(this)'  value=' 删    除 'style='magin-left:30px;'/></td></tr>";
		return htmls;  
    }
    function pubPriChange(){
    	var type= $("#pubPriChangeID").val();
    	if(type=="0"){
    		//alert(type+"-------0");
    		$("#s_imgSixId").show();
		    $("#s_imgSevenId").show();
    		$("#s_imgEightId").hide();
    		$("#privateID").show();
    	}else if(type=="1"){
    		//alert(type+"-------1");
    		$("#s_imgSixId").hide();
		    $("#s_imgSevenId").hide();
		    $("#s_imgEightId").show()
		    $("#privateID").hide();
    	}else {
    		$("#s_imgSixId").show();
		    $("#s_imgSevenId").show();
    		$("#s_imgEightId").show();
    		$("#privateID").hide()
    		$("#noPrivateID").hide();
    	}
    }
    function isDvpBy(){
    	var type = $("input[name='merinfoChange.dvpBy']:checked").val();
    	if(type=="0"){
    		$("#noPrivateID").hide();
    	}else if(type=="1"){
    		$("#noPrivateID").show();
    	}
    }
	function typeChange(){
		$("#submitBtnID").removeAttr("disabled");
	    var type= $("#merinfoChangeTyep").find('option:selected').val();
		if(type=="C1"){
		    $("#changeC1").show();
		    $("#changeC2").hide();
		    $("#posTable").hide();
		    $("#s_imgOne").show();
		    $("#s_imgTwoId").show();
		    $("#s_imgThreeId").show();
		    $("#s_imgFourId").hide();
		    $("#s_imgFiveId").hide();
		    $("#s_imgSixId").hide();
		    $("#s_imgSevenId").hide();
		    $("#s_imgEightId").hide();
		    $("#s_imgNineId").hide();
		    $("#s_imgTenId").hide();
		    $("#changeC4").hide();
		    $("#changeC5").hide();
		    $("#changeC6").hide();
		    $("#changeC7").hide();
		    $("#changeC8").hide();
		    $("#changeC9").hide();
		    $("#changeC10").hide();
		    $("#changeC11").hide();
		    $("#changeC12").hide();
		}else if(type=="C2"){
		    $("#changeC1").hide();
		    $("#changeC2").show();
		    $("#posTable").hide();
		    $("#s_imgOne").show();
		    $("#s_imgTwoId").show();
		    $("#s_imgThreeId").show();
		    $("#s_imgFourId").show();
		    $("#s_imgFiveId").show();
		    $("#s_imgSixId").show();
		    $("#s_imgSevenId").show();
		    $("#s_imgEightId").show();
		    $("#s_imgNineId").show();
		    $("#s_imgTenId").show();
		    $("#changeC4").hide();
		    $("#changeC5").hide();
		    $("#changeC6").hide();
		    $("#changeC7").hide();
		    $("#changeC8").hide();
		    $("#changeC9").hide();
		    $("#changeC10").hide();
		    $("#changeC11").hide();
		    $("#pID").html("授权书");
		    $("#bID").html("授权书");
		    $("#privateID").hide();
		    $("#noPrivateID").hide();
		    $("#changeC12").hide();
		}else if(type=="C3"){
		    $("#changeC1").hide();
		    $("#changeC2").hide();
		    $("#changeC12").hide();
		    showPOS();
		  /*   $("#posTable").show();
			$("#s_imgFourId").show(); */
		    $("#changeC4").hide();
		    $("#changeC5").hide();
		    $("#changeC6").hide();
		    $("#changeC7").hide();
		    $("#changeC8").hide();
		    $("#changeC9").hide();
		    $("#changeC10").hide();
		    $("#changeC11").hide();
		    $("#changeC12").hide();
		    $("#pID").html("终端照");
			$("#bID").html("终端照");
		}else if(type=="C4"){
		    $("#changeC1").hide();
		    $("#changeC2").hide();
		    $("#posTable").hide();
		    $("#s_imgOne").show();
		    $("#s_imgTwoId").show();
		    $("#s_imgThreeId").show();
		    $("#s_imgFourId").show();
		    $("#s_imgFiveId").hide();
		    $("#s_imgSixId").hide();
		    $("#s_imgSevenId").hide();
		    $("#s_imgEightId").hide();
		    $("#s_imgNineId").show();
		    $("#s_imgTenId").show();
		    $("#changeC4").show();
		    $("#changeC5").hide();
		    $("#changeC6").hide();
		    $("#changeC7").hide();
		    $("#changeC8").hide();
		    $("#changeC9").hide();
		    $("#changeC10").hide();
		    $("#changeC11").hide();
		    $("#changeC12").hide();
			$("input[name='merinfoEdit.productCode']").val(1000);
			 $("#submitBtnID").attr("disabled",false);
		}else if(type=="C5"){
		    $("#changeC1").hide();
		    $("#changeC2").hide();
		    $("#posTable").hide();
		    $("#s_imgOne").show();
		    $("#s_imgTwoId").show();
		    $("#s_imgThreeId").show();
		    $("#s_imgFourId").show();
		    $("#s_imgFiveId").hide();
		    $("#s_imgSixId").hide();
		    $("#s_imgSevenId").hide();
		    $("#s_imgEightId").hide();
		    $("#s_imgNineId").show();
		    $("#s_imgTenId").show();
		    $("#changeC4").hide();
		    $("#changeC5").show();
		    $("#changeC6").hide();
		    $("#changeC7").hide();
		    $("#changeC8").hide();
		    $("#changeC9").hide();
		    $("#changeC10").hide();
		    $("#changeC11").hide();
		    $("#changeC12").hide();
		    $("input[name='merinfoEdit.productCode']").val(1171);
		    
		    
		    
		     
		}else if(type=="C6"){
		    $("#changeC1").hide();
		    $("#changeC2").hide();
		    $("#posTable").hide();
		    $("#s_imgOne").show();
		    $("#s_imgTwoId").show();
		    $("#s_imgThreeId").show();
		    $("#s_imgFourId").show();
		    $("#s_imgFiveId").hide();
		    $("#s_imgSixId").hide();
		    $("#s_imgSevenId").hide();
		    $("#s_imgEightId").hide();
		    $("#s_imgNineId").show();
		    $("#s_imgTenId").show();
		    $("#changeC4").hide();
		    $("#changeC5").hide();
		    $("#changeC6").show();
		    $("#changeC7").hide();
		    $("#changeC8").hide();
		    $("#changeC9").hide();
		    $("#changeC10").hide();
		    $("#changeC11").hide();
		    $("#changeC12").hide();
		    $("input[name='merinfoEdit.productCode']").val(1000);
		    
		    chooseType("0");
		}else if(type=="C7"){
		    $("#changeC1").hide();
		    $("#changeC2").hide();
		    $("#posTable").hide();
		    $("#s_imgOne").show();
		    $("#s_imgTwoId").show();
		    $("#s_imgThreeId").show();
		    $("#s_imgFourId").show();
		    $("#s_imgFiveId").hide();
		    $("#s_imgSixId").hide();
		    $("#s_imgSevenId").hide();
		    $("#s_imgEightId").hide();
		    $("#s_imgNineId").show();
		    $("#s_imgTenId").show();
		    $("#changeC4").hide();
		    $("#changeC5").hide();
		    $("#changeC6").hide();
		    $("#changeC7").show();
		    $("#changeC8").hide();
		    $("#changeC9").hide();
		    $("#changeC10").hide();
		    $("#changeC11").hide();
		    $("#changeC12").hide();
		    $("input[name='merinfoEdit.productCode']").val(1171);
		    chooseType("1");
		    $("#submitBtnID").attr("disabled",false);
		}else if(type=="C8"){
		    $("#changeC1").hide();
		    $("#changeC2").hide();
		    $("#posTable").hide();
		    $("#s_imgOne").show();
		    $("#s_imgTwoId").show();
		    $("#s_imgThreeId").show();
		    $("#s_imgFourId").show();
		    $("#s_imgFiveId").hide();
		    $("#s_imgSixId").hide();
		    $("#s_imgSevenId").hide();
		    $("#s_imgEightId").hide();
		    $("#s_imgNineId").show();
		    $("#s_imgTenId").show();
		    $("#changeC4").hide();
		    $("#changeC5").hide();
		    $("#changeC6").hide();
		    $("#changeC7").hide();
		    $("#changeC8").show();
		    $("#changeC9").hide();
		    $("#changeC10").hide();
		    $("#changeC11").hide();
		    $("#changeC12").hide();
		    $("#submitBtnID").attr("disabled",false);
		}else if(type=="C9"){
			$("#changeC1").hide();
		    $("#changeC2").hide();
		    $("contactPhoneNo").hide();
		    $("#posTable").hide();
		    $("#s_imgOne").hide();
		    $("#s_imgTwoId").hide();
		    $("#s_imgThreeId").hide();
		    $("#s_imgFourId").hide();
		    $("#s_imgFiveId").hide();
		    $("#s_imgSixId").hide();
		    $("#s_imgSevenId").hide();
		    $("#s_imgEightId").hide();
		    $("#s_imgNineId").hide();
		    $("#s_imgTenId").hide();
		    $("#changeC4").hide();
		    $("#changeC5").hide();
		    $("#changeC6").hide();
		    $("#changeC7").hide();
		    $("#changeC8").hide();
		    $("#changeC9").show();
		    $("#changeC10").hide();
		    $("#changeC11").hide();
		    $("#changeC12").hide();
		    $("#privateID").hide();
		    $("#noPrivateID").hide();
		    $("#prompy").hide();
		    
		}else if(type=="10"){
			 $("#changeC1").hide();
			    $("#changeC2").hide();
			    $("#posTable").hide();
			    $("#s_imgOne").show();
			    $("#s_imgTwoId").show();
			    $("#s_imgThreeId").show();
			    $("#s_imgFourId").show();
			    $("#s_imgFiveId").hide();
			    $("#s_imgSixId").hide();
			    $("#s_imgSevenId").hide();
			    $("#s_imgEightId").hide();
			    $("#s_imgNineId").show();
			    $("#s_imgTenId").show();
			    $("#changeC4").hide();
			    $("#changeC5").hide();
			    $("#changeC6").hide();
			    $("#changeC7").hide();
			    $("#changeC8").hide();
			    $("#changeC9").hide();
			    $("#changeC10").show();
			    $("#changeC11").hide();
			    $("#changeC12").hide();
			    var mcc=$("#mcc").val();
			    var flag1="0";
			    var arr =['1520','1771','5271','7013','5511','5521','5551','5561','5571','5592','5598','5599','5933','6012','4011',
							'4214','4458','5013','5021','5039','5044','5045','5046','5047','5051','5065','5072','5074','5111','5122',
							'5131','5137','5139','5172','5192','5193','5198','5398','5998','6010','6011','6051','5094','9498'];
			    for(var i=0;i<arr.length;i++){
			    	 if(arr[i]==mcc){
			    		 flag1="1";
			    	 }
			    }
			    if(flag1=="1"){
			    	$("#feePercent4").val("0.60");
			    }else{
			    	$("#feePercent4").val("0.35");
			    }
			    $("input[name='merinfoEdit.productCode']").val('1191');
			    chooseType("1");
			    $("#submitBtnID").attr("disabled",false);
		     
		}else if(type=="11"){
			 $("#changeC1").hide();
			    $("#changeC2").hide();
			    $("#posTable").hide();
			    $("#s_imgOne").show();
			    $("#s_imgTwoId").show();
			    $("#s_imgThreeId").show();
			    $("#s_imgFourId").show();
			    $("#s_imgFiveId").hide();
			    $("#s_imgSixId").hide();
			    $("#s_imgSevenId").hide();
			    $("#s_imgEightId").hide();
			    $("#s_imgNineId").show();
			    $("#s_imgTenId").show();
			    $("#changeC4").hide();
			    $("#changeC5").hide();
			    $("#changeC6").hide();
			    $("#changeC7").hide();
			    $("#changeC8").hide();
			    $("#changeC9").hide();
			    $("#changeC10").hide();
			    $("#changeC11").show();
			    $("#changeC12").hide();
			    $("input[name='merinfoEdit.productCode']").val('1391');
			    chooseType("1");
			    $("#submitBtnID").attr("disabled",false);
		}
		else if(type=="12"){
			 $("#changeC1").hide();
			    $("#changeC2").hide();
			    $("#posTable").hide();
			    $("#s_imgOne").show();
			    $("#s_imgTwoId").show();
			    $("#s_imgThreeId").show();
			    $("#s_imgFourId").show();
			    $("#s_imgFiveId").hide();
			    $("#s_imgSixId").hide();
			    $("#s_imgSevenId").hide();
			    $("#s_imgEightId").hide();
			    $("#s_imgNineId").show();
			    $("#s_imgTenId").show();
			    $("#changeC4").hide();
			    $("#changeC5").hide();
			    $("#changeC6").hide();
			    $("#changeC7").hide();
			    $("#changeC8").hide();
			    $("#changeC9").hide();
			    $("#changeC10").hide();
			    $("#changeC11").hide();
			    $("#changeC12").show();
			    $("input[name='merinfoEdit.productCode']").val('1021');
			    chooseType("1");
			    $("#submitBtnID").attr("disabled",false);
		}
		
	}
	function validateHidden(){ 
		var type= $("#merinfoChangeTyep").val();
		//alert("----start-------type="+type);
		if(type=="C4" && $("#checkEditT1").val()=="1"){// alert("1");
			return false;
		}else if(type=="C5" && $("#checkEditT0").val()=="1"){//alert("2");
			return false;
		}else if(type=="C6" && $("#checkAddT1").val()=="1"){//alert("3");
			return false;
		}else if(type=="C7" && $("#checkAddT0").val()=="1"){//alert("4");
			return false;
		}else if(type=="10" && $("#checkAddYL").val()=="1"){//alert("4");
			return false;
		}else if(type=="11" && $("#checkAddZW").val()=="1"){//alert("4");
			return false;
		} else if(type=="12" && $("#checkAddysq").val()=="1"){//alert("4");
			return false;
		}  
		return true;
	}
     function showPosInfoWindow(){
    	    
         var ScreenWidth = screen.availWidth ;
         var ScreenHeight = screen.availHeight; 
         var StartX = (ScreenWidth - innerWidth) / 2 ;
         var StartY = (ScreenHeight - innerHeight) / 2 ;
    	 var url =  "<%=basePath %>chooseBank/init.ct";
    	 window.open(url, '选择开户行', 'left='+ StartX + ', top='+ StartY + ', Width=' + innerWidth +', height=' + innerHeight + ', resizable=no, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no'); 
    } 
   //查询商户对应终端的数量
 	function termCount(merNo){
 		var count;
 		$.ajax({
 	  		url:"<%=basePath%>merinfoAjax/getTermCountByMchtNo.ct",
 		  		data:{"merNo":merNo},
 		  		dataType:"json",
 		  		type:"POST",
 		  		async: false,
 		  		success:function(result){
 		  			count=result.codeDesc;
 		  		}
 	  	});
 		return count;
   }
   function showPOS(){
	   var merNo = $("#isMid").val();
   	   var srccount = Number(termCount(merNo));
//    	   alert(srccount);
   	var isGroupCd = $("#groupCd").val();
   	if(isGroupCd!=2){
   		if(srccount<15){
 		   $("#posTable").show();
 		   $("#s_imgOne").show();
 		   $("#s_imgTwoId").show();
 		   $("#s_imgThreeId").show();
 		   $("#s_imgFourId").show();
 		   $("#s_imgFiveId").show();
 		   $("#s_imgSixId").hide();
 		   $("#s_imgSevenId").hide();
 		   $("#s_imgEightId").hide();
 		   $("#s_imgNineId").hide();
 		   $("#s_imgTenId").hide();
 	   }else{
 		   $("#submitBtnID").attr("disabled",true);
 		   alert("一个用户只能添加15台终端");
 	   }
   	}else{
   		if(srccount<150){
  		   $("#posTable").show();
  		   $("#s_imgOne").show();
  		   $("#s_imgTwoId").show();
  		   $("#s_imgThreeId").show();
  		   $("#s_imgFourId").show();
  		   $("#s_imgFiveId").show();
  		   $("#s_imgSixId").hide();
  		   $("#s_imgSevenId").hide();
  		   $("#s_imgEightId").hide();
  		   $("#s_imgNineId").hide();
  		   $("#s_imgTenId").hide();
  	   }else{
  		   $("#submitBtnID").attr("disabled",true);
  		   alert("一个用户只能添加150台终端");
  	   }
   	}
	   
	  
   }
   function checkNewBankAccount(){
	   var newAccountNo=$("#newBankAccount").val();
	   $("#newBankAccount1").val(newAccountNo);
	   var oldBankAccount=$("#oldBankAccount").val();
	   var count='0';
	   if(newAccountNo!=oldBankAccount){
			$.ajax({
		  		url:"<%=basePath%>merinfoAjax/getCountByAccountNo.ct",
			  		data:{"newBankAccount":newAccountNo},
			  		dataType:"json",
			  		type:"POST",
			  		async: false,
			  		success:function(result){
			  			count=result.codeDesc;
			  		}
		  	});
		}
		return count;
   }
   
   
   
</script>
	<style>
		 .fieldError { color: red; text-align: left; }
		.error { float: none; color: red;  vertical-align: middle;font-size: 11px;}
	</style>
</head>
<body>
<s:form id="merinfoFormID" action="/merinfoChange/saveChange.ct" method="post" theme="simple" enctype="multipart/form-data">
<s:hidden id="orgCodes"   value="%{#request.org}"/>
<s:hidden name="merinfo.ext1"></s:hidden>
<s:hidden id="hiddenValidate"/>
 <table class="tb" style="width:100%">
	<s:iterator value="#request.valueList" status="stat" id="bean">
		<s:hidden name="athorityValue" value="%{#bean}"></s:hidden>
	</s:iterator>
	<tr class="tb-line">
            <td class="tb-td" colspan="12" >
            	<div class="tb-h3">
            		商户信息申请变更[<s:property value="merinfo.id" />]<s:hidden id="isMid" name="merinfo.id"></s:hidden>
            		<s:hidden name="merinfo.mcc" id="mcc"/>
            		<s:hidden id="groupCd" name="merinfo.groupCD"></s:hidden>
            	</div>
            </td>
    </tr>
    <tr class="tb-line">
        <td class="tb-td" colspan="6"><div class="tb-h2">基本信息</div></td>
    </tr>
    <tr class="tb-line">
         <td align="right" class="tb-td" style="width:110px;">
             <div class="tb-h4">商户简称：</div>
         </td>
         <td class="tb-td" >
             <s:property value="merinfo.nameBusi" />
         </td>
         <td align="right" class="tb-td" style="width:110px;">
             <div class="tb-h4">工商注册名称：</div>
         </td>
         <td class="tb-td" >
             <s:property value="merinfo.name" />
         </td>
     </tr>
     
     <tr class="tb-line">
         <td align="right" class="tb-td">
             <div class="tb-h4">商户注册地址：</div>
         </td>
         <td class="tb-td" >
         	<s:property value="merinfo.provCd"/>-
         	<s:property value="merinfo.cityCd"/>-
         	<s:property value="merinfo.areaCd"/>
         </td>
         <td align="right" class="tb-td">
             <div class="tb-h4">详细地址：</div>
         </td>
         <td class="tb-td" >
         	<s:property value="merinfo.regAddr" />
         </td>
     </tr>
     
     <tr class="tb-line">
         <td align="right" class="tb-td">
             <div class="tb-h4">法人代表：</div>
         </td>
         <td class="tb-td">
             <s:property value="merinfo.certif"/><s:hidden name="merinfo.certif" id="certifID"/>
         </td>
         <td align="right" class="tb-td">
             <div class="tb-h4">营业执照号码：</div>
         </td>
         <td class="tb-td">
             <s:property value="merinfo.busiLiceNo" />
         </td>
      </tr>
    
    
      <tr class="tb-line">
      	 <td align="right" class="tb-td" >
             <div class="tb-h4">法人证件类型：</div>
         </td>
         <td class="tb-td" >
             <s:property value="merinfo.certifType" />
         </td>
         <td align="right" class="tb-td" >
             <div class="tb-h4">法人证件号码：</div>
         </td>
         <td class="tb-td" >
			<s:property value="merinfo.certifNo" />
         </td>
      </tr>
      
      <tr class="tb-line">
      	<td align="right" class="tb-td">
        	<div class="tb-h4">商户联系人：</div>
        </td>
        <td class="tb-td" >
        	<s:property value="merinfo.contactName" />
        </td>
        <td align="right" class="tb-td">
        	<div class="tb-h4">手机号码：</div>
        </td>
        <td class="tb-td" >
        	<s:property value="merinfo.contactPhoneNo" />
        </td>
      </tr>
      
	  <tr class="tb-line">
	  	<td align="right" class="tb-td">
	  		<div class="tb-h4">营业起始时间：</div>
	  	</td>
		<td class="tb-td"> 
			<s:property value="merinfo.terminfoRisk.AccpetStartTime" />
		</td>
		<td align="right" class="tb-td">
			<div class="tb-h4">营业终止时间：</div>
		</td>
		<td class="tb-td">
			<s:property value="merinfo.terminfoRisk.AccpetEndTime" />
		</td>
	  </tr>
	  
	  <tr class="tb-line">
        <td align="right" class="tb-td">
            <div class="tb-h4">经营业务、范围：</div>
        </td>
        <td class="tb-td" >
        	<s:property value="merinfo.busiMain" />
        </td>
        <td align="right" class="tb-td">
            <div class="tb-h4">商户类型：</div>
        </td>
        <td class="tb-td" >
                        标准类
        </td>
      </tr>
      
      <tr class="tb-line">
      	<td align="right" class="tb-td">
            <div class="tb-h4">备注：</div>
        </td>
        <td class="tb-td"  colspan="3"  >
        	<s:property value="merinfo.ext2" />
        </td>
      </tr>
	<tr class="tb-line">
        <td class="tb-td" colspan="6"><div class="tb-h2">商户信息修改</div></td>
    </tr>
    
	<tr class="tb-line">
		<td align="right" class="tb-td" >
	        <div class="tb-h4">商户信息变更类型：</div>
	    </td>
	    <td class="tb-td" colspan="5" >
	        <label class="tb-select">
	        	<s:select id="merinfoChangeTyep"
					name="merinfoChangeType"
					list="#{'12':'商户申请预授权开通','C9':'变更商户等级','C1':'申请变更基本信息','C2':'申请变更结算信息','C3':'商户增机申请','C4':'申请变更T1手续费','C5':'申请变更T0手续费','C6':'商户申请T1开通','C7':'商户申请T0开通','C8':'终止合同申请(注销)','10':'商户申请银联扫码支付开通','11':'商户申请支付宝/微信扫码支付开通' }"
					onChange="typeChange()" />
	        </label><code class="asterisk">提示：每次只能更改下拉框中的一项！！！</code>
	    </td>
	</tr>
</table>
<div id="tabBody" class="tab-body" style="width:100%">
	<div class="tab-cnt" style="width:100%;">
		 <table id="changeC1" class="tb" style="width:100%;">
            <tbody >
            	<tr class="tb-line" >
					<td align="right" class="tb-td" >
						<div class="tb-h4">原商户简称：</div>
					</td>
					<td class="tb-td">
						<s:property value="merinfo.nameBusi" /><s:hidden name="merinfo.nameBusi"/>
					</td>
					<td align="right" class="tb-td" >
						<div class="tb-h4">新商户简称：</div>
					</td>
			        <td class="tb-td" >
			         	<label class="tb-input-lengthen">
			            <s:textfield id="merName" name="merinfoChange.nameBusi" maxlength="50"/>
			            </label><code class="asterisk">*</code><font id="rtName" color="red"></font>
			        </td>
				</tr>
				<tr class="tb-line">
					<td align="right" class="tb-td" >
						<div class="tb-h4">原商户联系人：</div>
					</td>
					<td class="tb-td">
						<s:property  value="merinfo.contactName" /><s:hidden name="merinfo.contactName"/>
					</td>
			        <td align="right" class="tb-td" >
						<div class="tb-h4">新商户联系人：</div>
					</td>
			        <td class="tb-td" >
			            <label class="tb-input-lengthen">
			            	<s:textfield id="contactName" name="merinfoChange.contactName" maxLength="15"/>
			            </label><code class="asterisk">*</code><font id="rtName" color="red"></font>
			        </td>
				</tr>
					<tr class="tb-line">
					<td align="right" class="tb-td" >
						<div class="tb-h4">原联系人手机号码：</div>
					</td>
					<td class="tb-td">
						<s:property  value="merinfo.contactPhoneNo" /><s:hidden name="merinfo.contactPhoneNo"/>
					</td>
			        <td align="right" class="tb-td" >
						<div class="tb-h4">新联系人手机号码：</div>
					</td>
			        <td class="tb-td" >
			            <label class="tb-input-lengthen">
			            	<s:textfield id="contactPhoneNo" name="merinfoChange.contactPhoneNo" maxLength="15"/>
			            </label><code class="asterisk">*</code><font id="rtPhone" color="red"></font>
			        </td>
				</tr>
				
					<tr class="tb-line">
					<td align="right" class="tb-td" >
						<div class="tb-h4">原法人代表姓名：</div>
					</td>
					<td class="tb-td">
						<s:property  value="merinfo.certif" />
					</td>
			        <td align="right" class="tb-td" >
						<div class="tb-h4">新法人代表姓名：</div>
					</td>
			        <td class="tb-td" >
			            <label class="tb-input-lengthen">
			            	<s:textfield id="certif" name="merinfoChange.certif" maxLength="15"/>
			            </label><code class="asterisk">*</code><font id="certif" color="red"></font>
			        </td>
				</tr>
            </tbody>
         </table>
          <table id="changeC2" class="tb" style="width:100%;">
            <tbody >
            	<tr class="tb-line">
				    <td align="right" class="tb-td"  >
				         <div class="tb-h4">原账户名称：<s:hidden name="check" id="checkoffID"></s:hidden></div>
				    </td>
				    <td class="tb-td">
				         <label class="tb-input-lengthen">
				         	<s:property value="merinfo.bankAccount.name" /><s:hidden name="merinfo.bankAccount.name"/>
				         </label>
				    </td>
				     
				    <td align="right" class="tb-td"  >
				         <div class="tb-h4">新账户名称：</div>
				    </td>
				    <td class="tb-td"   >
				         <label class="tb-input-lengthen">
				         	<s:textfield name="merinfoChange.bankAccountName" maxLength="30" id="bankAccountNameID"/>
				         </label><code class="asterisk">*</code>
				    </td>
				</tr>
				<tr class="tb-line">
					<td align="right" class="tb-td"  >
				         <div class="tb-h4">原账户账号：</div>
				    </td>
				    <td class="tb-td">
				         <label class="tb-input-lengthen">
				         	<s:property value="merinfo.bankAccount.account" />
				         	<s:hidden  id="oldBankAccount"  name="merinfo.bankAccount.account"/>
				         </label>
				    </td>
				    
				    <td align="right" class="tb-td"  >
				         <div class="tb-h4">新账户账号：</div>
				    </td>
				    <td class="tb-td">
				         <label class="tb-input-lengthen">
				         	<s:textfield name="merinfoChange.bankAccount" id="newBankAccount" maxLength="30"/>
				         	<s:hidden name="newBankAccount1" id="newBankAccount1"></s:hidden>
				         </label><code class="asterisk">*</code>
				    </td>
				</tr>
				<tr class="tb-line">
					<td align="right" class="tb-td"  >
				        <div class="tb-h4">原开户行：</div>
				    </td>
				    <td class="tb-td">
				        <label class="tb-input-lengthen">
				        	<s:property value="merinfo.bankAccount.bankName" /><s:hidden name="merinfo.bankAccount.bankName"/>
				        </label>
				    </td>
				    
				    <td align="right" class="tb-td"  >
				        <div class="tb-h4">新开户行：</div>
				    </td>
				    <td class="tb-td"   >
				        <label class="tb-input-lengthen">
				       		<s:textfield id="aaa" name="merinfoChange.openBank" maxLength="50" readonly="true" cssStyle="background-color:lightgray;"/>
				        </label><code class="asterisk">*</code>
				        <input type="button" onclick="showPosInfoWindow()" value="选择" />
				    </td>
				</tr>
				<tr class="tb-line">
					<td align="right" class="tb-td"  >
				        <div class="tb-h4"><!-- 开户行支付系统行号 -->原联行号：</div>
				    </td>
				    <td class="tb-td">
				        <label class="tb-input-lengthen">
				        	<s:property value="merinfo.bankAccount.bankCode" /><s:hidden name="merinfo.bankAccount.bankCode"/>
				        </label>
				    </td>
					
				    <td align="right" class="tb-td"  >
				        <div class="tb-h4"><!-- 开户行支付系统行号 -->新联行号：</div>
				    </td>
				    <td class="tb-td">
				        <label class="tb-input-lengthen">
				        	<s:textfield id="bbb" name="merinfoChange.bankCode" maxLength="12" readonly="true" cssStyle="background-color:lightgray;"/>
				        </label><code class="asterisk">*</code>
				    </td>
				</tr>
				<tr class="tb-line">
	            	<td align="right" class="tb-td" >
		        		<div class="tb-h4">原商户对公对私：</div>
		    		</td>
				    <td class="tb-td">
				        <s:if test="merinfo.approvalUserName==\"1\"">
				        	对公（法人）
				        </s:if> 
						<s:elseif test="merinfo.approvalUserName==\"0\"">
							对私（非法人）
							<s:if test="merinfo.dvpBy==\"0\"">->是法人结算</s:if>
							<s:elseif test="merinfo.dvpBy==\"1\"">
								->非法人结算
								<s:if test="merinfo.stlmWayDesc!=null">
									->非法人身份证号
									<s:property value="merinfo.stlmWayDesc" />
								</s:if>
							</s:elseif>
						</s:elseif> 
						
						<s:hidden name="merinfo.approvalUserName"/>
					<%-- 	<s:hidden name="merinfo.stlmWayDesc"/> --%>
						<s:hidden name="merinfo.dvpBy"/>
				    </td>
	            	<td align="right" class="tb-td" >
		        		<div class="tb-h4">新商户对公对私：</div>
		    		</td>
				    <td class="tb-td" >
				        <label class="tb-select">
				        	<s:select list="#{'1':'对公（法人）','0':'对私（非法人）' }" name="merinfoChange.pubOrPri"  headerKey="-1" headerValue="--请选择--" onChange="pubPriChange()" id="pubPriChangeID"/>
				        </label><code class="asterisk">*</code>
				    </td>
				</tr>
				<tr class="tb-line" id="privateID">
	            	<td align="right" class="tb-td" >
		        		<div class="tb-h4"></div>
		    		</td>
				    <td class="tb-td">
				       
				    </td>
	            	<td align="right" class="tb-td" >
		        		<div class="tb-h4">是否法人结算：</div>
		    		</td>
				    <td class="tb-td" >
			            <s:radio list="#{'0':'是','1':'否' }" name="merinfoChange.dvpBy" value="0" onChange="isDvpBy()" id="isDvpByID"></s:radio>
						<font color="red">*</font>
					</td>
				</tr>
				<tr class="tb-line" id="noPrivateID">
	            	<td align="right" class="tb-td" >
		        		<div class="tb-h4"></div>
		    		</td>
				    <td class="tb-td">
				    </td>
	            	<td align="right" class="tb-td" >
		        		<div class="tb-h4">非法人身份证号：</div>
		    		</td>
				    <td class="tb-td"   >
				         <label class="tb-input-lengthen">
				         	<s:textfield name="merinfoChange.stlmWayDesc"/>
				         </label><code class="asterisk">*</code>
				    </td>
				</tr>
            </tbody>
         </table>
          <table id="posTable" class="tb" style="width:100%;">
          	<s:hidden name="merinfo.terminfoRisk.accpetStartTime"></s:hidden>
          	<s:hidden name="merinfo.terminfoRisk.accpetEndTime"></s:hidden>
            <tbody >
	            <tr class="tb-line">
	                <td class="tb-td line-submit" align="right" colspan="4">
	                   	<label class="tb-input-submit">
	                   		<input id="terminalDiv" type="button"  value=" 添  加 "/> 
	                   	</label>
	                </td>
	            </tr>
				<tr class="tb-line">
					<td  style="width: 110px" align="right" class="tb-td">
	                    <div class="tb-h4">终端类型：</div>
	                </td>
	                <td class="tb-td" >
	                    <label class="tb-input-lengthen">
	                    	<s:select name="merinfoEdit.terminfoList[0].TermTp" list="#request.posType"></s:select>
						</label><code class="asterisk">*</code>
	                </td>
	            	 <td  style="width: 110px" align="right" class="tb-td">
	                    <div class="tb-h4">终端接入方式：</div>
	                </td>
	                <td class="tb-td" >
	                    <label class="tb-select">
	                      <s:radio name="merinfoEdit.terminfoList[0].TmnlIntype" list="#{'0':'无线(GPRS)','1':'有线(拨号)' }" value="0"></s:radio>
	                    </label><code class="asterisk">*</code>
	                </td>
	            </tr>
	            <tr class="tb-line">
	            	<td style="width: 110px" align="right" class="tb-td" >
	                    <div class="tb-h4">押金金额：</div>
	                </td>
	                <td class="tb-td">
	                    <label class="tb-input-normal">
	                    	<s:textfield name="merinfoEdit.terminfoList[0].TmnlMoney" value="0" maxLength="10"/>
	                    </label>
	                    <code class="asterisk">*</code>
	                </td>
	                <td style="width: 110px" align="right" class="tb-td">
	                    <div class="tb-h4">装机地址：</div>
	                </td>
	                <td class="tb-td" >
	                    <label class="tb-input-lengthen">
	                    	<s:textfield name="merinfoEdit.terminfoList[0].Installlocation" maxLength="30"/>
	                    </label>
	                    <code class="asterisk">*</code>
	                </td>
	            </tr>
            </tbody>
         </table>
          <table id="changeC4" class="tb" style="width:100%;">
            <tbody >
            	<s:if test="#request.vo.t1 != null">
					<tr class="tb-line">
				        <td class="tb-td" colspan="4">
				        	<div class="tb-h2">
				        		变更产品信息:T1 <code class="asterisk">*提示：0表示无封顶</code><s:hidden name="merinfoEdit.productCode" value="1000"></s:hidden>
				        	</div>
				        </td>
				    </tr>
					<tr class="tb-line">
						<td align="right" class="tb-td">
				            <div class="tb-h4"><font color="red">T+1</font>原借记卡手续费：</div>
				        </td>
				        <td align="left" class="tb-td" style="padding-left:15px;">
				      		<label class="tb-input-nimi">
				      			 <s:property value="#request.vo.t1['t1jf']"/>%<s:hidden name="feeVo.t1['t1jf']" value="%{#request.vo.t1['t1jf']}"/>
				            </label><span></span> -
				            <label class="tb-input-nimi">
				            	 <s:property value="#request.vo.t1['t1jm']"/><s:hidden name="feeVo.t1['t1jm']" value="%{#request.vo.t1['t1jm']}"/>
				            </label><span></span>封顶
				        </td>
					    <td width="10%" style="min-width: 130px" align="right" class="tb-td">
	                        <div class="tb-h4"><font color="red">T+1</font>新借记卡手续费：</div>
	                    </td>
	                    <td  align="left" class="tb-td" >
	                    		<label class="tb-input-mini">
	                           	 <s:textfield id="feePercent0" name="merinfoEdit.fee[0].mchtFeePercent" value="0.5"  />
	                           	 </label>%<span></span> -
	                           	 <label class="tb-input-mini">
	                           	 <s:textfield id="feePctMax0" name="merinfoEdit.fee[0].mchtFeePctMax" value="20" />
	                           	 </label>封顶<span></span> <code class="asterisk">提示：0表示无封顶，T1借记卡最低18*</code>
	                    </td>
					</tr>
					<tr class="tb-line">
				 		<td align="right" class="tb-td">
						    <div class="tb-h4"><font color="red">T+1</font>原贷记卡手续费：</div>
						</td>
						<td  align="left" class="tb-td" style="padding-left: 15px;">
							<label class="tb-input-nimi">
								<s:property value="#request.vo.t1['t1df']"/>%<s:hidden name="feeVo.t1['t1df']" value="%{#request.vo.t1['t1df']}"/>
							</label><span></span> -
							<label class="tb-input-nimi">
								<s:property value="0"/>
							</label><span></span>封顶 <span></span>
						</td>
						<td width="10%" style="min-width: 130px" align="right" class="tb-td">
	                        <div class="tb-h4"><font color="red">T+1</font>新贷记卡手续费：</div>
                    	</td>
	                    <td  align="left" class="tb-td"  >
	                    	 <label class="tb-input-mini">
	                           	<s:textfield id="feePercent2" name="merinfoEdit.fee[1].mchtFeePercent" value="0.6"/>
	                         </label>%<span></span> -
	                         <label class="tb-input-mini">
	                           	<s:textfield id="feePctMax2"  name="merinfoEdit.fee[1].mchtFeePctMax" value="0" readonly="true" cssStyle="background-color:lightgray;"/>
	                         </label>封顶 
<!-- 	                         <code class="asterisk">*提示：0表示无封顶</code> -->
	                    </td>
					</tr>
				</s:if> 
				<s:else>
					<tr class="tb-line">
				        <td class="tb-td" align="center">
				        	<div class="tb-h2">
				        		<s:hidden name="#request.vo.t1" id="checkEditT1" value="1"></s:hidden>
				        		<code class="asterisk">提示:您还【未开通】T1</code>
				        	</div>
				        </td>
				    </tr>
				</s:else>
            </tbody>
         </table>
          <table id="changeC5" class="tb" style="width:100%;">
            <tbody >
           		<s:if test="#request.vo.t0 != null">
    				<tr class="tb-line">
				        <td class="tb-td" colspan="4">
				        	<div class="tb-h2">
				        		变更产品信息:T0 <code class="asterisk">*提示：0表示无封顶</code><s:hidden name="merinfoEdit.productCode" value="1171"></s:hidden>
				        	</div>
				        </td>
				    </tr>	
				    
				    
				 <!-- ###################################################################### -->
					<tr class="tb-line">
				     	<td align="right" class="tb-td">
				            <div class="tb-h4"><font color="red">T+0</font>原借记卡手续费：</div>
				        </td>
				        <td  align="left" class="tb-td" style="padding-left:15px;">
				      		<label class="tb-input-nimi">
				      			 <font color="red"><s:property value="#request.vo.t0['t0jf']"/>%<s:hidden name="feeVo.t1['t0jf']" value="%{#request.vo.t0['t0jf']}"/>
				            </font>
				            </label><span></span> -
				            <label class="tb-input-nimi">
				            	 <font color="red"><s:property value="#request.vo.t0['t0jm']"/></font>
				            	 <s:hidden name="feeVo.t1['t0jm']" value="%{#request.vo.t0['t0jm']}"/>
				            </label> 
				                   封顶 
 				          <s:if test="merinfo.groupCD==\"2\"  "> 
 				           <s:if test="#request.vo.t0['tojdf']!=null &&  #request.vo.t0['tojdf']!=\"0.0\" "> 
				             <label class="tb-input-nimi">
				             -代付服务费费率:
				            	<font color="red"><s:property value="#request.vo.t0['tojdf']"/></font>
				            	<s:hidden name="feeVo.t1['tojdf']" value="%{#request.vo.t0['tojdf']}"/>
				            </label>
				            </s:if>
 				          </s:if> 
				        </td>
				       	 <td width="10%" style="min-width: 130px" align="right" class="tb-td">
                        	<div class="tb-h4"><font color="red">T+0</font>新借记卡手续费：</div>
                   		 </td>
	                     <td  align="left" class="tb-td" >
	                    		<label class="tb-input-mini">
	                           	 <s:textfield id="feePercent1" name="merinfoEdit.fee[2].mchtFeePercent"  value="0.6"  />
	                           	 </label>%<span></span> -
	                           	 <label class="tb-input-mini">
                               <s:if test="merinfo.groupCD==\"2\"">
                           		 <s:textfield id="feePctMax11" name="merinfoEdit.fee[2].mchtFeePctMax" value="0" />
                           	 </s:if>
	                         <s:else>
							    <s:textfield id="feePctMax1" name="merinfoEdit.fee[2].mchtFeePctMax" value="0" readonly="true" cssStyle="background-color:lightgray;"/>
							 </s:else>
	                           	 
	                           	 </label><span></span>封顶 
<!-- 	                           	 <code class="asterisk">*提示：0表示无封顶</code> -->
	                          <s:if test="merinfo.groupCD==\"2\"">
 	                           	 <span id="serviceFee" style="display:none"> 
 	                           	 -代付服务费费率：
								     <span class="tb-h4"></span>
								     <label class="tb-input-mini">
							            <s:textfield id="feeAPerchent1" name="merinfoEdit.fee[2].mchtAFeePercent" value="0.03"/>
								      </label>%  
								</span>
						    </s:if>
	                    </td>
					</tr>
					
				 <!-- ###################################################################### -->	
					
					
					<tr class="tb-line">
				 		<td align="right" class="tb-td">
						    <div class="tb-h4"><font color="red">T+0</font>原贷记卡手续费：</div>
						</td>
						<td  align="left" class="tb-td" style="padding-left: 15px;">
							<label class="tb-input-nimi">
								<s:property value="#request.vo.t0['t0df']"/>%<s:hidden name="feeVo.t1['t0df']" value="%{#request.vo.t0['t0df']}"/>
							</label><span></span> -
							<label class="tb-input-nimi">
								<s:property value="0"/>
							</label><span></span>封顶 <span></span>
						</td>
						<td width="10%" style="min-width: 130px" align="right" class="tb-td">
                        	<div class="tb-h4"><font color="red">T+0</font>新贷记卡手续费：</div>
	                    </td>
	                    <td  align="left" class="tb-td"  >
	                    	 <label class="tb-input-mini">
	                           	<s:textfield id="feePercent3" name="merinfoEdit.fee[3].mchtFeePercent" value="0.6"/>
	                         </label>%<span></span> -
	                         <label class="tb-input-mini">
	                           	<s:textfield id="feePctMax3"  name="merinfoEdit.fee[3].mchtFeePctMax" value="0"   readonly="true" cssStyle="background-color:lightgray;" />
	                           	</label>封顶 
<!-- 	                           	<code class="asterisk">*提示：0表示无封顶</code> -->
	                    </td>
					</tr>
				</s:if>
				<s:else>
					<tr class="tb-line">
				        <td class="tb-td" align="center">
				        	<div class="tb-h2">
				        		<s:hidden name="#request.vo.t0" id="checkEditT0" value="1"></s:hidden>
				        		<code class="asterisk">提示:您【未开通】T0</code>
				        	</div>
				        </td>
				    </tr>
				</s:else>
            </tbody>
         </table>
         <table id="changeC6" class="tb" style="width:100%;">
            <tbody >
            	<s:if test="#request.vo.t1 == null">
	            	<tr class="tb-line">
	                    <td class="tb-td" colspan="4">
	                        <div class="tb-h3">产品开通</div>
	                    </td>
	                </tr>
	                <tr class="tb-line">
	                    <td width="10%" style="min-width: 130px" align="right" class="tb-td">
	                        <div class="tb-h4">产品信息选择：</div>
	                    </td>
	                    <td  align="left" class="tb-td" colspan="3">
	                    	<input type="radio" id="productTypesID" name="merinfoEdit.productCode" value="1000" checked="checked">银行卡支付T1
	                    </td>
	                </tr>
					<tr class="tb-line">
	                    <td width="10%" style="min-width: 130px" align="right" class="tb-td">
	                        <div class="tb-h4">POS功能选择：</div>
	                    </td>
	
	                    <td  align="left" class="tb-td"  colspan="3">
	                          <s:checkboxlist id="posFun" disabled="true" list="#request.posFunction" name="merinfoEdit.productBean.transCd"  />
	                    </td>
	                </tr>
	                <tr class="tb-line">
	                    <td width="10%" style="min-width: 130px" align="right" class="tb-td">
	                        <div class="tb-h4"><font color="red">T+1</font>借记卡手续费：</div>
	                    </td>
	                    <td  align="left" class="tb-td" >
	                    		<label class="tb-input-mini">
	                           	 <s:textfield id="feePercent0" name="merinfoEdit.fee[4].mchtFeePercent" value="0.5"  />
	                           	 </label>%<span></span> -
	                           	 <label class="tb-input-mini">
	                           	 <s:textfield id="feePctMax0" name="merinfoEdit.fee[4].mchtFeePctMax" value="20" />
	                           	 </label>封顶<span></span> <code class="asterisk">*提示：T+1借记卡手续费封顶最低20; </code>
	                    </td>
	                </tr>
	                <tr class="tb-line">
	                    <td width="10%" style="min-width: 130px" align="right" class="tb-td">
	                        <div class="tb-h4"><font color="red">T+1</font>贷记卡手续费：</div>
	                    </td>
	                    <td  align="left" class="tb-td">
	                    	 <label class="tb-input-mini">
	                           	<s:textfield id="feePercent2" name="merinfoEdit.fee[5].mchtFeePercent" value="0.6"/>
	                         </label>%<span></span> -
	                         <label class="tb-input-mini">
	                           	<s:textfield id="feePctMax2"  name="merinfoEdit.fee[5].mchtFeePctMax" value="0" readonly="true" cssStyle="background-color:lightgray;"/>
                           	</label>封顶 
<!--                            	<code class="asterisk">*提示：0表示无封顶</code> -->
	                    </td>
	                </tr>
            	</s:if>
				<s:else>
					<tr class="tb-line">
				        <td class="tb-td" align="center">
				        	<div class="tb-h2">
				        	<s:hidden name="#request.vo.t1" id="checkAddT1" value="1"></s:hidden>
				        		<code class="asterisk">提示:您【已开通】T1</code>
				        	</div>
				        </td>
				    </tr>
				</s:else>
            </tbody>
         </table>
         
         <table id="changeC7" class="tb" style="width:100%;">
            <tbody >
            	<s:if test="#request.vo.t0 == null">
            		<tr class="tb-line">
	                    <td class="tb-td" colspan="4">
	                        <div class="tb-h3">产品开通</div>
	                    </td>
	                </tr>
	                <tr class="tb-line">
	                    <td width="10%" style="min-width: 130px" align="right" class="tb-td">
	                        <div class="tb-h4">产品信息选择：</div>
	                    </td>
	                    <td  align="left" class="tb-td"   colspan="3"><!-- name="merinfo.productBean.prodCd"  -->
	                    	<input type="radio" id="productTypesID" name="merinfoEdit.productCode" value="1171" checked="checked">实时业务T0
	                    	<code class="asterisk">*</code><font id="isError" color="red"></font>
	                    </td>
	                </tr>
					<tr class="tb-line">
	                    <td width="10%" style="min-width: 130px" align="right" class="tb-td">
	                        <div class="tb-h4">POS功能选择：</div>
	                    </td>
	
	                    <td  align="left" class="tb-td"  colspan="3">
	                          <s:checkboxlist id="posFun" disabled="true" list="#request.posFunction" name="merinfoEdit.productBean.transCd"  />
	                    </td>
	                </tr>
	                <tr class="tb-line">
	                     <td width="10%" style="min-width: 130px" align="right" class="tb-td">
	                        <div class="tb-h4"><font color="red">T+0</font>借记卡手续费：</div>
	                    </td>
	                     <td  align="left" class="tb-td" >
	                    		<label class="tb-input-mini">
	                           	 <s:textfield id="feePercent1" name="merinfoEdit.fee[6].mchtFeePercent" value="0.6" />
	                           	 </label>%  -<span class="asterisk"></span>
	                           	  
	                            <label class="tb-input-mini">
	                           	 	 <s:if test="merinfo.groupCD==\"2\"">
	                           	   		  <s:textfield id="feePctMax11" name="merinfoEdit.fee[6].mchtFeePctMax" value="0" />
	                           	 	 </s:if>
	                           	 	 <s:else>
	                           	    	  <s:textfield id="feePctMax1" name="merinfoEdit.fee[6].mchtFeePctMax" value="0" readonly="true" cssStyle="background-color:lightgray;"/>
	                           		 </s:else>
	                           </label>封顶
	                           <s:if test="merinfo.groupCD==\"2\"">
 	                           	 <span id="serviceFee" style="display:none"> 
								     <span class="tb-h4">-代付服务费费率：</span>
								     <label class="tb-input-mini">
							            <s:textfield id="feeAPerchent1" name="merinfoEdit.fee[6].mchtAFeePercent" value="0.03"/>
								      </label>%
								</span>
						    </s:if>
	                    </td>
	                </tr>
	                <tr class="tb-line">
	                    <td width="10%" style="min-width: 130px" align="right" class="tb-td">
	                        <div class="tb-h4"><font color="red">T+0</font>贷记卡手续费：</div>
	                    </td>
	                     <td  align="left" class="tb-td"  >
	                    	 <label class="tb-input-mini">
	                           	<s:textfield id="feePercent3" name="merinfoEdit.fee[7].mchtFeePercent" value="0.6"/>
	                         </label>%<span class="asterisk"></span> -
	                         <label class="tb-input-mini">
	                           	<s:textfield id="feePctMax3" name="merinfoEdit.fee[7].mchtFeePctMax" value="0" readonly="true" cssStyle="background-color:lightgray;" />
	                           	</label>封顶 
	                    </td>
	                </tr>
            	</s:if>
				<s:else>
					<tr class="tb-line">
				        <td class="tb-td" align="center">
				        	<div class="tb-h2">
				        	<s:hidden name="#request.vo.t0" id="checkAddT0" value="1"></s:hidden>
				        		<code class="asterisk">提示:您【已开通】T0</code>
				        	</div>
				        </td>
				    </tr>
				</s:else>
            </tbody>
         </table>
         <table id="changeC8" class="tb" style="width:100%;">
            <tbody >
            	<tr class="tb-line">
					<td align="right" class="tb-td">
						<div class="tb-h4">原商户状态：</div>
					</td>
					<td class="tb-td">
							<s:if test="merinfo.status==0">未开通</s:if> 
							<s:elseif test="merinfo.status==1">开通</s:elseif> 
							<s:elseif test="merinfo.status==14">注销（终止合同）</s:elseif> 
							<s:elseif test="merinfo.status==15">废弃</s:elseif> 
							<s:elseif test="merinfo.status==13">冻结</s:elseif>
					</td>
					
					<td align="right" class="tb-td">
						<div class="tb-h4">新商户状态：</div>
					</td>
					<td class="tb-td">
						注销（终止合同）
					</td>
				</tr>
            </tbody>
         </table>
         <table id="changeC9" class="tb" style="width:100%;">
            <tbody >
            	<tr class="tb-line">
				    <td align="right" class="tb-td"  >
				         <div class="tb-h4">原账户名称：</div>
				    </td>
				    <td class="tb-td">
				         <label class="tb-input-lengthen">
				         	<s:property value="merinfo.bankAccount.name" />
				         	 
				         </label>
				    </td>
				    <td align="right" class="tb-td"  >
				         <div class="tb-h4">信用卡/储蓄卡 卡号：</div>
				    </td>
				     <td class="tb-td" >
			            <label class="tb-input-lengthen">
			            <s:textfield name="merinfoChange.creditAccount" maxLength="19"/>
			             
			            </label><code class="asterisk">*</code>
			        </td>

				</tr>
				
				<tr class="tb-line">
					 <td align="right" class="tb-td"  >
				         <div class="tb-h4">原结算人身份证号：</div>
				    </td>
				    	
				    <td class="tb-td">
				        <label class="tb-input-lengthen">
				             <s:if test="merinfo.dvpBy==\"1\"">
				             <s:property value="merinfo.stlmWayDesc"  />
				              </s:if>
				              <s:else>
				                  <s:property value="merinfo.certifNo"  />
				              </s:else>
				        </label>
				    </td> 
				    <td align="right" class="tb-td"  >
				         <div class="tb-h4">结算人身份证号：</div>
				    </td>
				    	<td class="tb-td" >
			            <label class="tb-input-lengthen">
			            <s:if test="merinfo.dvpBy==\"1\"">
			                  <s:textfield name="merinfo.stlmWayDesc" maxLength="18" /> 
				        </s:if>
				              	<s:else>
				              	      <s:textfield name="merinfo.certifNo" maxLength="18" />
				              	</s:else>
			            </label><code class="asterisk">*</code>
			        </td>
				    
				</tr>
				
				<tr class="tb-line">
				 	<td align="right" class="tb-td"  >
				        <div class="tb-h4">原银行预留手机号：</div>
				    </td>
				    
				    <td class="tb-td">
				        <label class="tb-input-lengthen">
				        <s:if test="merinfo.k2WorkFlowId==null">无</s:if>
                 	<s:else><s:property value="merinfo.k2WorkFlowId"/></s:else>
				        </label>
				    </td> 
				    
				    <td align="right" class="tb-td"  >
				         <div class="tb-h4">银行预留手机号：</div>
				    </td>
				     <td class="tb-td" >
			            <label class="tb-input-lengthen">
			            <s:textfield name="merinfo.k2WorkFlowId" maxLength="15"/>
			            </label><code class="asterisk">*</code>
			        </td>
				</tr>	
				
				
				    
				
            </tbody>
         </table>
         <table id="changeC10" class="tb" style="width:100%;">
            <tbody >
            	<s:if test="#request.vo.YLSM == null">
            		<tr class="tb-line">
	                    <td class="tb-td" colspan="4">
	                        <div class="tb-h3">产品开通</div>
	                    </td>
	                </tr>
	                <tr class="tb-line">
	                    <td width="10%" style="min-width: 130px" align="right" class="tb-td">
	                        <div class="tb-h4">产品信息：</div>
	                    </td>
	                    <td  align="left" class="tb-td"   colspan="3"><!-- name="merinfo.productBean.prodCd"  -->
	                    	银联扫码支付<input type="hidden" id="productTypesID" name="merinfoEdit.productCode" value="1191">
	                    </td>
	                </tr>
	                <tr class="tb-line">
	                     <td width="10%" style="min-width: 150px" align="right" class="tb-td">
	                        <div class="tb-h4"><font color="red">银联扫码支付</font>手续费：</div>
	                    </td>
	                     <td  align="left" class="tb-td" >
	                    		<label class="tb-input-mini">
	                           	 <s:textfield id="feePercent4" name="merinfoEdit.fee[8].mchtFeePercent"  readonly="true" cssStyle="background-color:lightgray;"/>
	                           	 <input type="hidden" id="feePercent4_1" name="feePercent4_1">
	                           	 </label>%<span></span> -
	                           	 <label class="tb-input-mini">
	                           	 <s:textfield id="feePctMax1" name="merinfoEdit.fee[8].mchtFeePctMax" value="0" readonly="true" cssStyle="background-color:lightgray;"/>
	                           	 </label><span></span>封顶 
<!-- 	                           	 <code class="asterisk">*提示：0表示无封顶</code> -->
	                    </td>
	                </tr>
            	</s:if>
				<s:else>
					<tr class="tb-line">
				        <td class="tb-td" align="center">
				        	<div class="tb-h2">
				        	<s:hidden name="#request.vo.YLSM" id="checkAddYL" value="1"></s:hidden>
				        		<code class="asterisk">提示:您【已开通】银联扫码支付</code>
				        	</div>
				        </td>
				    </tr>
				</s:else>
            </tbody>
         </table>
         <table id="changeC11" class="tb" style="width:100%;">
            <tbody >
            	<s:if test="#request.vo.ZWSM == null">
            		<tr class="tb-line">
	                    <td class="tb-td" colspan="4">
	                        <div class="tb-h3">产品开通</div>
	                    </td>
	                </tr>
	                <tr class="tb-line">
	                    <td width="10%" style="min-width: 170px" align="right" class="tb-td">
	                        <div class="tb-h4">产品信息：</div>
	                    </td>
	                    <td  align="left" class="tb-td"   colspan="3"><!-- name="merinfo.productBean.prodCd"  -->
	                    	支付宝/微信扫码支付<input type="hidden" id="productTypesID" name="merinfoEdit.productCode" value="1171"  >
	                    </td>
	                </tr>
	                <tr class="tb-line">
	                     <td width="10%" style="min-width: 200px" align="right" class="tb-td">
	                        <div class="tb-h4"><font color="red">支付宝/微信扫码支付</font>手续费：</div>
	                    </td>
	                     <td  align="left" class="tb-td" >
	                    		<label class="tb-input-mini">
	                           	 <s:textfield id="feePercent5" name="merinfoEdit.fee[9].mchtFeePercent" value="0.38"  />
	                           	  <input type="hidden" id="feePercent5_1" name="feePercent5_1">
	                           	 </label>%<span></span> -
	                           	 <label class="tb-input-mini">
	                           	 <s:textfield id="feePctMax1" name="merinfoEdit.fee[9].mchtFeePctMax" value="0" readonly="true" cssStyle="background-color:lightgray;"/>
	                           	 </label><span></span>封顶 
<!-- 	                           	 <code class="asterisk">*提示：0表示无封顶</code> -->
	                    </td>
	                </tr>
            	</s:if>
				<s:else>
					<tr class="tb-line">
				        <td class="tb-td" align="center">
				        	<div class="tb-h2">
				        	<s:hidden name="#request.vo.ZWSM" id="checkAddZW" value="1"></s:hidden>
				        		<code class="asterisk">提示:您【已开通】支付宝/微信扫码支付</code>
				        	</div>
				        </td>
				    </tr>
				</s:else>
            </tbody>
         </table>
         <!-- 预授权 -->
          <table id="changeC12" class="tb" style="width:100%;">
            <tbody >
            	<s:if test="#request.vo.ysq == null">
            		<tr class="tb-line">
	                    <td class="tb-td" colspan="4">
	                        <div class="tb-h3">产品开通</div>
	                    </td>
	                </tr>
	                <tr class="tb-line">
	                    <td width="10%" style="min-width: 170px" align="right" class="tb-td">
	                        <div class="tb-h4">产品信息：</div>
	                    </td>
	                    <td  align="left" class="tb-td"   colspan="3"><!-- name="merinfo.productBean.prodCd"  -->
	                    	开通预授权<input type="hidden" id="productTypesID" name="merinfoEdit.productCode" value="1021"  >
	                    </td>
	                </tr>
            	</s:if>
				<s:else>
					<tr class="tb-line">
				        <td class="tb-td" align="center">
				        	<div class="tb-h2">
				        	<s:hidden name="#request.vo.ysq" id="checkAddysq" value="1"></s:hidden>
				        		<code class="asterisk">提示:您【已开通】预授权</code>
				        	</div>
				        </td>
				    </tr>
				</s:else>
            </tbody>
         </table>
         
         
		<table class="tb tb-pic YLlightbox">
			<tbody>
				<tr class="tb-line">
			        <td class="tb-td" colspan="5" id ='prompy'>
			        	<div class="tb-h2">附件信息<code class="asterisk">提示:请上传</code></div>
			        </td>
			    </tr>
			    <tr class="tb-line">
			    	<td width="20%" class="tb-td"></td>
				    <td class="tb-td" id="s_imgOne"  onclick="chooseImgJs(this)">
				        <div class="pic-uploading" >
				            <p>营业执照照片</p>
				            <input  type="file" name="file" id="imgOne" onchange="uploadChangeImg(this.id,'00');"  accept="image/*" capture="camera" />
				            <s:hidden id="i_imgOne" name="merinfoChange.url1"/>
				            <a rel="YLlightbox">
				                <img />
				            </a>
				            <i class="delete-pic"></i>
				        </div>
				        <div class="tb-normal" id="divOne">营业执照照片<code class="asterisk" id="e_imgOne">*</code></div>
				    </td>
				    <td class="tb-td" id="s_imgTwoId"  onclick="chooseImgJs(this)">
				        <div class="pic-uploading" id="div1" >
				            <p>法人身份证正面照片</p>
				            <input type="file" name="file" id="imgTwo"  onchange="uploadChangeImg(this.id,'01');"  accept="image/*" capture="camera" />
				            <s:hidden id="i_imgTwoId" name="merinfoChange.url2"/>
				            <a rel="YLlightbox">
				                <img />
				            </a>
				            <i class="delete-pic"></i>
				        </div>
				        <div class="tb-normal" id="divTwo">法人身份证正面照片<code class="asterisk" id="e_imgTwoId">*</code></div>
				    </td>
				    <td class="tb-td" id="s_imgThreeId" onclick="chooseImgJs(this)">
				        <div class="pic-uploading">
				            <p>法人身份证反面照片</p>
				            <input type="file" name="file" id="imgThree" onchange="uploadChangeImg(this.id,'02');" accept="image/*" capture="camera" />
				            <s:hidden id="i_imgThreeId" name="merinfoChange.url3"/>
				            <a rel="YLlightbox">
				                <img />
				            </a>
				            <i class="delete-pic"></i>
				        </div>
				        <div class="tb-normal" id="divThree">法人身份证反面照片<code class="asterisk" id="e_imgThreeId">*</code></div>
				    </td>
				    <td class="tb-td" id="s_imgFiveId" onclick="chooseImgJs(this)">
                        <div class="pic-uploading">
                            <p id="pID">
                            </p>
                            <input type="file" name="file" id="imgFive" onchange="uploadChangeImg(this.id,'04');" accept="image/*" capture="camera" />
                            <s:hidden id="i_imgFiveId" name="merinfoChange.url5" />
                            <a rel="YLlightbox">
                                <img />
                            </a>
                            <i class="delete-pic"></i>
                        </div>
                        <div class="tb-normal" id="divFive"><b id="bID"></b><code class="asterisk" id="e_imgFiveId">*</code></div>
                    </td>
                    <td class="tb-td" id="s_imgSixId" onclick="chooseImgJs(this)">
                        <div class="pic-uploading">
                            <p>银行卡正面</p>
                            <input type="file" name="file" id="imgSix" onchange="uploadChangeImg(this.id,'05');" accept="image/*" capture="camera" />
                            <s:hidden id="i_imgSixId" name="merinfoChange.url6" />
                            <a rel="YLlightbox">
                                <img />
                            </a>
                            <i class="delete-pic"></i>
                        </div>
                        <div class="tb-normal" id="divSix">银行卡正面<code class="asterisk" id="e_imgSixId">*</code></div>
                    </td>
                    <td class="tb-td" id="s_imgSevenId" onclick="chooseImgJs(this)">
                        <div class="pic-uploading">
                            <p>银行卡反面</p>
                            <input type="file" name="file" id="imgSeven" onchange="uploadChangeImg(this.id,'06');" accept="image/*" capture="camera" />
                            <s:hidden id="i_imgSevenId" name="merinfoChange.url7" />
                            <a rel="YLlightbox">
                                <img />
                            </a>
                            <i class="delete-pic"></i>
                        </div>
                        <div class="tb-normal" id="divSeven">银行卡反面<code class="asterisk" id="e_imgSevenId">*</code></div>
                    </td>
                    <td class="tb-td" id="s_imgEightId" onclick="chooseImgJs(this)">
                        <div class="pic-uploading">
                            <p>开户许可证</p>
                            <input type="file" name="file" id="imgEight" onchange="uploadChangeImg(this.id,'07');" accept="image/*" capture="camera" />
                            <s:hidden id="i_imgEightId" name="merinfoChange.url8" />
                            <a rel="YLlightbox">
                                <img />
                            </a>
                            <i class="delete-pic"></i>
                        </div>
                        <div class="tb-normal" id="divEight">开户许可证<code class="asterisk" id="e_imgEightId">*</code></div>
                    </td>
                    <td width="20%" class="tb-td"></td>
			    </tr>
			    <tr class="tb-line">
			    	<td width="20%" class="tb-td"></td>
			    	<td class="tb-td" id="s_imgFourId" onclick="chooseImgJs(this)">
                        <div class="pic-uploading">
                            <p>变更项的申请单</p>
                            <input type="file" name="file" id="imgFour" onchange="uploadChangeImg(this.id,'03');" accept="image/*" capture="camera" />
                            <s:hidden id="i_imgFourId" name="merinfoChange.url4" />
                            <a rel="YLlightbox">
                                <img />
                            </a>
                            <i class="delete-pic"></i>
                        </div>
                        <div class="tb-normal" id="divFour">变更项的申请单<code class="asterisk" id="e_imgFourId">*</code></div>
                    </td>
			    	<td class="tb-td" id="s_imgNineId">
                        <div class="pic-uploading">
                            <p>其他</p>
                            <input type="file" name="file" id="imgNine" onchange="uploadChangeImg(this.id,'08');" accept="image/*" capture="camera" />
                            <s:hidden id="i_imgNineId" name="merinfoChange.url9" />
                            <a rel="YLlightbox">
                                <img />
                            </a>
                            <i class="delete-pic"></i>
                        </div>
                        <div class="tb-normal" id="divNine">其他</div>
                    </td>
                    <td class="tb-td" id="s_imgTenId">
                        <div class="pic-uploading">
                            <p>其他</p>
                            <input type="file" name="file" id="imgTen" onchange="uploadChangeImg(this.id,'09');" accept="image/*" capture="camera" />
                            <s:hidden id="i_imgTenId" name="merinfoChange.url10" />
                            <a rel="YLlightbox">
                                <img />
                            </a>
                            <i class="delete-pic"></i>
                        </div>
                        <div class="tb-normal" id="divNine">其他</div>
                    </td>
			        <td width="20%" class="tb-td"></td>
			    </tr>
			</tbody>
		</table>
	
	</div>
     
	<div class="line-submit bg-gray" align="center">
		<label class="tb-input-submit">
			<s:submit id="submitBtnID" value="提  交" />
		</label>
		<label class="tb-input-submit">
			<input type="reset" value="取消" />
		</label>
	</div>
	
</div>
</s:form>
</body>
</html>
